import { Metadata } from "next"
type Props = {
    params: { id: string }
}
export const generateMetadata = async ({ params }: Props): Promise<Metadata> => {
    const id = (await params).id
    console.log('id', id)
    return {
        title: `Product ID:${id}`,
        description:'我也是醉了咋一直不生效啊'
    }
}

export default async function Proctedetail({ params }: 
   Props
) {
    const {id} =params
    return <>
        详情页---{id}
    </>
}